package com.zoz.dto;

import org.springframework.util.StringUtils;

/**
 * 数据库列属性
 *@author zhuhg
 *@date 2020年6月5日 下午1:55:20
 */
public class ColumnDto {

	/**
	 * 数据库列名
	 */
	private String column;
	/**
	 * 数据列属性
	 */
	private String columnType;
	/**
	 * 默认值
	 */
	private String defaultVal;
	/**
	 * java列属性
	 */
	private String columnJavaType;
	/**
	 * java属性
	 */
	private String field;
	/**
	 * java大写属性
	 */
	private String changeField;
	/**
	 * 是否为空 
	 */
    private String isNull;
    /**
     * 列备注
     */
    private String remark;
    /**
     * 是否增加方法添加这个列
     */
    private String save;
    /**
     * 是否修改方法添加这个列
     */
    private String update;
    /**
     * 是否删除方法添加这个列
     */
    private String delete;
    /**
     * 是否为查询条件
     */
    private String select;
    /**
     * el控件
     */
    private String el;
    /**
     * 是否为table条件
     */
    private String table;
    /**
     * 是否为比较条件
     */
    private String between;
  
    /**
     * 列表达式 针对 select下拉选
     */
    private String formatter;
	public String getColumn() {
		return column;
	}
	public void setColumn(String column) {
		this.column = column;
	}
	public String getColumnType() {
		return columnType;
	}
	public void setColumnType(String columnType) {
		this.columnType = columnType;
	}
	public String getColumnJavaType() {
		return columnJavaType;
	}
	public void setColumnJavaType(String columnJavaType) {
		this.columnJavaType = columnJavaType;
	}
	public String getIsNull() {
		return isNull;
	}
	public void setIsNull(String isNull) {
		this.isNull = isNull;
	}
	public String getRemark() {
		return remark;
	}
	public void setRemark(String remark) {
		this.remark = remark;
	}
	public String getFormatter() {
		return formatter;
	}
	public void setFormatter(String formatter) {
		this.formatter = formatter;
	}
	public String getField() {
		return field;
	}
	public void setField(String field) {
		this.field = field;
	}
	public String getChangeField() {
		return changeField;
	}
	public void setChangeField(String changeField) {
		this.changeField = changeField;
	}
	public String getSave() {
		return save;
	}
	public void setSave(String save) {
		this.save = save;
	}
	public String getUpdate() {
		return update;
	}
	public void setUpdate(String update) {
		this.update = update;
	}
	public String getSelect() {
		return select;
	}
	public void setSelect(String select) {
		this.select = select;
	}
	public String getTable() {
		return table;
	}
	public void setTable(String table) {
		this.table = table;
	}
	public String getDefaultVal() {
		return defaultVal;
	}
	public void setDefaultVal(String defaultVal) {
		this.defaultVal = defaultVal;
	}
	public String getDelete() {
		return delete;
	}
	public void setDelete(String delete) {
		this.delete = delete;
	}
	public String getEl() {
		return el;
	}
	public void setEl(String el) {
		this.el = el;
	}
	public String getBetween() {
		return StringUtils.isEmpty(between) ? "N" : between;
	}
	public void setBetween(String between) {
		this.between = between;
	}
	
}
